package com.explorati.interview.interview.chapterten;

import java.net.ServerSocket;
import java.net.Socket;

public class WebServer {

	public static void main(String[] args) throws Exception {
		ServerSocket ss = new ServerSocket(80);
		Socket s = null;
		while ((s = ss.accept()) != null) {
			new HTTPThread(s).start();
		}
		ss.close();
	}
}
